package com.template.common.enums;

/**
 * @author mltong
 */

public enum SysCodeEnum {

	/**
	 * 操作成功
	 */
	SUCCESS(200, "操作成功"),
	/**
	 * 系统错误
	 */
	ERROR(500, "系统异常");

	
	SysCodeEnum(int code, String message) {
		this.code = code;
		this.msg = message;
	}

	private final int code;

	private final String msg;

	public int getCode() {
		return code;
	}

	public String getMessage() {
		return msg;
	}
}
